const promisel = new Promise((resolve, reject) => {
    console.log(1);
    resolve('success')
    console.log(2);
})

promisel.then(() => {
    console.log(3);
})

console.log(4);

// 1 2 4 3